package com.wuyou.programmingIdeas.Chapter9interface.part2.p1;

/**
 * @Description 恐怖秀
 * @Author 无忧
 * @Date 2023/12/19 21:49
 */
public class HorrorShow {

    static void u(Monster b){
        b.menace();
    }
    static void v(DangerousMonster d){
        d.menace();
        d.destroy();
    }

    public static void main(String[] args) {
        DangerousMonster bareny = new DraonZilla();
        u(bareny);
        v(bareny);

        Vampire vlad = new VeryBadVampire();
        u(vlad);
        v(vlad);
    }
}
